import routes from "./routes";
var pxtorem = require('postcss-pxtorem');
export default {
  routes,
  alias: {
    "@a": "/src/api",
    "@c": "/src/components",
    "@u": "/src/utils",
  },

  proxy: {
    '/conner': {
      'target': 'https://api.it120.cc',
      'changeOrigin': true,
      'pathRewrite': { '^/conner' : '/conner' },
    }
  },
  dva: {},
  plugins: ["@umijs/plugins/dist/dva"],
  extraPostCSSPlugins: [
    pxtorem({
      rootValue: '37.5', // 一般为设计图 10分之一
      propList: ['width', 'height', 'margin', 'padding']
    })
  ]
};